package com.my.study.ftp;

/**
 * @author yidujun
 * @version 1.0.0
 * @date 2023/6/23 1:38
 */
public class FtpUtils {
    
    private static final String HOST = ""; 
    private static final int PORT = 22; 
    private static final String USER_NAME = ""; 
    private static final String PWD = ""; 
    
//    public static FTPClient getFtpClient() {
//        FTPClient ftpClient = null;
//        
//        try {
//            ftpClient = new FTPClient();
//            ftpClient.connect(HOST, PORT);
//            ftpClient.login(USER_NAME, PWD);
//            if (!FTPReply.isPositiveCompletion(ftpClient.getReplyCode())) {
//                System.out.println("未连接到FTP，用户名或密码错误");
//                ftpClient.disconnect();
//            }
//            else {
//                System.out.println("FTP成功连接...");
//            }
//        } catch (IOException e) {
//            System.out.println("FTP连接错误...");
//            e.printStackTrace();
//        }
//        
//        return ftpClient;
//    }

    public static void main(String[] args) {
        if (args != null && args.length > 0) {
            for (String arg : args) {
                System.out.println(arg);
            }
        }
        else {
            System.out.println("空的");
            
        }
    }
    
}
